s=input()
List=s.split(",")
a=eval(List[0])
b=eval(List[1])
for i in range(1,b+1):
    print(a,end='')
